// main.js (Vue 2.x)
import Vue from 'vue';
import App from './App';
import './uni.promisify.adaptor';
import Navigate from '@/utils/navigate';
import uView from '@/uni_modules/uview-ui';
import Request from '@/common/request.js'
Vue.prototype.$Request = Request
import * as navTo from '@/common/navto.js'
Vue.prototype.$navTo = navTo
import store from './store'
Vue.prototype.$store = store
Vue.use(uView); // uView 插件的注册
Vue.use(Navigate); // Navigate 插件的注册

Vue.config.productionTip = false;

App.mpType = 'app';

const app = new Vue({
	store,
  ...App
});
import webSocket from '@/common/websocket.js'
webSocket.ws.that = app
Vue.prototype.ws = webSocket.ws
app.$mount();